﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Itasa.API;

namespace Itasa
{
    class Episode_Date : IComparable
    {

        internal DateTime Date;
        internal List<Episode> Episodes;

        internal Episode_Date(DateTime date)
        {
            this.Date = date;
            Episodes = new List<Episode>();
        }

        internal void addEpisode(Episode ep)
        {
            this.Episodes.Add(ep);
        }

        public override bool Equals(object obj)
        {
            if (obj is Episode_Date)
            {
                return this.Date.Equals((obj as Episode_Date).Date);
            }
            return false;
        }

        public int CompareTo(object obj)
        {
            if (obj is Episode_Date)
            {
                return this.Date.CompareTo((obj as Episode_Date).Date);
            }
            return 0;
        }
    }
}
